package com.zs;

import com.zs.service.OrderService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class ConsumerApplication {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("classpath:consumer.xml");
        OrderService orderService = ac.getBean(OrderService.class);

        orderService.initOrder("12");

        System.out.println("consumer调用完成");

        try {
            System.in.read();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
